
OPTS = -I../include  -DPERFORMANCE -DVIEW 
NVCC = nvcc $(OPTS) 
LIBS = -lfftw3f -lcufft -lcublas

%: %.cu must_build
	@$(NVCC) -o $@ -DUNIT=$@ unittest.cc $< $(LIBS) -run
	@rm -rf ./$@
#	@cat ./cuda.profile 
#	@rm -rf ./cuda.profile
.PHONY: must_build